package com.ww.juc.futureandcallable;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class MyCallableImpl implements Callable<String> {
	
	private int age;
	
	public MyCallableImpl(int age) {
		super();
		this.age = age;
	}

	@Override
	public String call() throws Exception {
		TimeUnit.SECONDS.sleep(8);
		return "返回值年龄是：" + age;
	}

}
